package com.ita.dataset;

/**
 * Node including its data and its previous Node and next Node
 * 
 */
public class Node<T> {

	public Node<T> pre;
	public Node<T> next;
	public T data;

	public Node(Node<T> pre, Node<T> next, T data) {
		super();
		this.pre = pre;
		this.next = next;
		this.data = data;
	}

	public Node(T data) {
		super();
		this.data = data;
		this.pre = null;
		this.next = null;
	}

	public Node() {
		super();
		pre = null;
		next = null;
		data = null;
	}

}
